/// <reference path="../lib/require" />

import {Reister} from "../form-studio";

let ComponentKeys = [
    "input"
];

let LayoutKeys =[];

export default {
    registerAll: function (register: Reister) {
        ComponentKeys.forEach(function(value){
            let factory = require(`../components/widget/${value}-factory`);
            register.register(factory.default);
        });

        LayoutKeys.forEach(function(value){
            let factory = require(`../components/layout/${value}-factory`);
            register.registerLayout(factory.default);
        });
    }
};
